package com.ca.dubbo.web.controller;

import com.ca.dubbo.service.DubboApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author Name: Justice
 * Project Name: zookeeperdubbo
 * File Name: DubboController
 * Package Name: com.ca.dubbo.web.controller
 * Date: 2020-02-22 14:20
 * Copyright (c) 2020,All Rights Reserved.
 * 消费者
 */

@RestController
public class DubboController {
    @Autowired
    private DubboApi dubboApi;

    @RequestMapping("/test/{name}")
    public String testA(@PathVariable String name) {
        return dubboApi.testDubbo(name);
    }
}
